home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tools
/
mg
/
rexx
/
clipclean.mg
< prev
next >
Wrap
Text File
|
1995-03-09
|
555b
|
23 lines
/*
* clipclean - cleans up all the clips it was told about by mgclip. This
* should be run via rexx-do-on-exit, when mg exits.
*
* To have it clean up a clip, just call mgclip with the name of the clip
* as a the argument. Clip names that aren't "words" by the definitions
* of Rexx won't get cleaned properly.
*/
clipname = "mg.cleanclips."
options failat 2
'rexx-unlock' /* Free the mg - we can't complain anyway... */
cliplist = getclip(clipname)
call setclip clipname
do i = 1 to words(cliplist)
call setclip word(cliplist, i)
end
exit